/**
 * @author LKQ
 * @date 2022/2/22 21:44
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int minimumMoves(String s) {
        char[] chars = s.toCharArray();
        int sum = 0;
        for (int i = 0; i < s.length(); i++) {
            if (chars[i] == 'X') {
                sum++;
                i = i + 2;
            }
        }
        return sum;
    }
}
